/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:com.cesgroup.zw.spring.boot.echarts.model.style</p>
 * <p>File:LineStyle.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 May 10, 2019 2:09:41 PM
 */
package com.cesgroup.zw.spring.boot.echarts.model.style;

import java.math.BigDecimal;

import com.cesgroup.zw.spring.boot.echarts.enums.BorderType;
import com.cesgroup.zw.spring.boot.supports.util.math.BigDecimalUtil;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>描述: </p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date May 10, 2019 2:09:41 PM
 * @version 1.0.2019
 */
@Data @SuppressWarnings("serial")
@EqualsAndHashCode(callSuper = true)
public class LineStyle extends ShadowStyle {

	/** 线型，[default: 'solid'] */
	private BorderType type;
	
	/** 线宽，[default: 1] */
	private BigDecimal width;
	
	/** 线的曲度，[default: 0] */
	private BigDecimal curveness;
	
	public void setWidth(int width) {
		this.width = BigDecimalUtil.valueOf(width);
	}
	
	public void setWidth(double width) {
		this.width = BigDecimalUtil.valueOf(width);
	}
	
	public void setCurveness(int curveness) {
		this.curveness = BigDecimalUtil.valueOf(curveness);
	}
	
	public void setCurveness(double curveness) {
		this.curveness = BigDecimalUtil.valueOf(curveness);
	}
}
